<layout name='layout' />

<div class="admin-main">
	<blockquote class="layui-elem-quote">
		<a href="<{:U('Album/index')}>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe608;</i> 返回列表
		</a>
		<a href="<{:U('Album/addimage',array('albumID'=>$album['id']))}>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe608;</i> 添加图片
		</a>
	</blockquote>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend><{$album['title']}></legend>
	</fieldset>
	<div class="img-fluid">
		<volist name="list" id="vo">
	    <div class="img-item">
	      <img src="<{$vo.picname}>" />
	      <div class="caption">
	        <p><{$vo.title}></p>
	        <p>
			<a href="<{:U('Album/editimg',array('id'=>$vo['id']))}>" class="layui-btn layui-btn-small layui-btn-normal"><i class="icon-edit"></i> 编辑</a>
	        <a href="<{:U('Album/delimg',array('id'=>$vo['id']))}>" class="layui-btn layui-btn-small layui-btn-normal"><i class="icon-trash"></i> 删除</a>
	        </p>
	      </div>
	    </div>
		</volist>
	</div>
</div>
<!--上传文件-->
<form style="display:none;" id='myupload' action="" method='post' enctype='multipart/form-data'>
<input id="fileupload" type="file" name="file">
</form>
<div id="uploading" style="display:none;">
	<div class="wrapper">
		<div class="load-bar">   
			<div class="load-bar-inner" data-loading="0"> <span id="counter">0%</span> </div> 
		</div>  
		<p>请等待... </p>
	</div>
</div>
<script>
$("#tempBtn").click(function(){
	$("#status").val("0");
	$("#ajaxForm").submit();
});
</script>